package com.mef.smsplat.eterm.bean;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

@XmlRootElement(name = "PASSENGER")
public class Passenger {
	/**
	 * <!-- 旅客记录序号 --><NO></NO>
	 */
	private String no;
	
	/** 是否是团队 */
	private boolean group;
	/** 团队人数 */
	private int groupNumber;
	/**
	 * <!-- 旅客姓名 --> <PASSENGER_NAME></PASSENGER_NAME>
	 */
	private String passengerName;
	/**
	 * <!-- 订座记录 --> <PNR> </PNR>
	 */
	private String pnr;
	/**
	 * <!-- 座位等级 --> <CABIN></CABIN>
	 */
	private String cabin;
	/**
	 * <!-- 行动代码 --> <ACTION_CODE></ACTION_CODE>
	 */
	private String actionCode;
	/**
	 * <!-- 责任部门 --> <OFFICE></OFFICE>
	 */
	private String office;
	/**
	 * <!-- 订座日期 --> <DATE></DATE>
	 */
	private String date;
	/**
	 * <!-- 旅客信息 --> <PASSENGER_INFO></PASSENGER_INFO>
	 */
	private String passengerInfo;

	@XmlElement(name = "NO")
	public String getNo() {
		return no;
	}

	@XmlElement(name = "PASSENGER_NAME")
	public String getPassengerName() {
		return passengerName;
	}

	@XmlElement(name = "PNR")
	public String getPnr() {
		return pnr;
	}

	@XmlElement(name = "CABIN")
	public String getCabin() {
		return cabin;
	}

	@XmlElement(name = "ACTION_CODE")
	public String getActionCode() {
		return actionCode;
	}

	public void setActionCode(String actionCode) {
		this.actionCode = actionCode;
	}

	@XmlElement(name = "OFFICE")
	public String getOffice() {
		return office;
	}

	@XmlElement(name = "DATE")
	public String getDate() {
		return date;
	}

	@XmlElement(name = "PASSENGER_INFO")
	public String getPassengerInfo() {
		return passengerInfo;
	}

	public void setNo(String no) {
		this.no = no;
	}

	public void setPassengerName(String passengerName) {
		this.passengerName = passengerName;
	}

	public void setPnr(String pnr) {
		this.pnr = pnr;
	}

	public void setCabin(String cabin) {
		this.cabin = cabin;
	}

	public void setOffice(String office) {
		this.office = office;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public void setPassengerInfo(String passengerInfo) {
		this.passengerInfo = passengerInfo;
	}

	public boolean getGroup() {
		return group;
	}

	public void setGroup(boolean group) {
		this.group = group;
	}

	public int getGroupNumber() {
		return groupNumber;
	}

	public void setGroupNumber(int groupNumber) {
		this.groupNumber = groupNumber;
	}
	
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}
	
}
